home *** CD-ROM | disk | FTP | other *** search
- Path: troll.powertech.no!usenet
- From: leo@powertech.no (Eivind Nordseth)
- Newsgroups: comp.sys.amiga.programmer
- Subject: SAS/C Bug? CXERR: 460351
- Date: 04 Feb 96 12:49:44 +0100
- Organization: Ultima Thule Software
- Message-ID: <1795.6608T769T2248@powertech.no>
- NNTP-Posting-Host: dial-17.oslo.no.powertech.net
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- I have a litte problem with some SAS/C code.
-
- The following code gives an CXERR at the "TAG_END);" line:
- ------------------begin--------------------
- [...]
- if(ReqToolsBase = (struct ReqToolsBase *) OpenLibrary(REQTOOLSNAME, 38))
- {
- logmsg->lm_Return = rtEZRequestTags(mem,
- logmsg->lm_GadFmt ? (STRPTR) logmsg->lm_GadFmt : (STRPTR) "Continue",
- NULL, logmsg->lm_ArgArray,
- RTEZ_ReqTitle, logmsg->lm_Program,
- (pubscreen ? RT_PubScrName : TAG_IGNORE), pubscreen,
- RT_Underscore, '_',
- TAG_END);
-
- CloseLibrary((struct Library *) ReqToolsBase);
- }
- [....]
- ------------------end--------------------
- SAS/C Amiga Compiler 6.56
- Copyright (c) 1988-1995 SAS Institute Inc.
- CXERR: 460351, Line: 227, Qpos: 504
-
- Compiler options: NOSTKCHK DEBUG=FULL
-
- The logmsg->lm_ArgArray reference seems to cause the CXERR. If I change the code
- a bit goes the CXERR away:
- ------------------begin--------------------
- [...]
- if(ReqToolsBase = (struct ReqToolsBase *) OpenLibrary(REQTOOLSNAME, 38))
- {
- STRPTR argarray = logmsg->lm_ArgArray;
-
- logmsg->lm_Return = rtEZRequestTags(mem, logmsg->lm_GadFmt ? (STRPTR) logmsg->lm_GadFmt : (STRPTR) "Continue",
- NULL, argarray,
- RTEZ_ReqTitle, logmsg->lm_Program,
- (pubscreen ? RT_PubScrName : TAG_IGNORE), pubscreen,
- RT_Underscore, '_',
- TAG_END);
-
- CloseLibrary((struct Library *) ReqToolsBase);
- }
- [....]
- ------------------end--------------------
-
- --
- | Eivind 'Leo' Nordseth | IRC #amiga: Leo | leo@powertech.no |
- +-------------------------+--------------------+---------------------+
- | THOR 2.2 Team | http://www.cs.uit.no/~kjelli/thor.html |
-
- How many WASPs does it take to change a light bulb?
- Two: One to change the bulb and one to mix the drinks.
-
-